import { Tabs } from 'antd';

const Demo = () => {
  const { TabPane } = Tabs;

  const callback = (key: any) => {
    console.log(key);
  };
  return (
    <div>
      <Tabs defaultActiveKey="1" onChange={callback}>
        <TabPane tab="Tab 1" key="1">
          Content of Tab Pane 3
        </TabPane>
      </Tabs>
    </div>
  );
};
export default Demo;
